package com.lelouch.product.service.impl;

import com.lelouch.product.bean.ProductCategory;
import com.lelouch.product.repository.ProductCategoryRepository;
import com.lelouch.product.service.ProductCatogoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实现类
 *
 * @author lcy
 * @create 2018-06-28 17:16
 */
@Service
public class ProductCategoryServiceImpl implements ProductCatogoryService {
    @Autowired
    private ProductCategoryRepository productCategoryRepository;



    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> types) {
        return productCategoryRepository.findByCategoryTypeIn(types);
    }
}
